  /**
   * Generate time : 2013-06-26 2:06:04
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBBoringFollowplan 
 * table comment : 掘进接替计划 
 */
public class ZMCBBoringFollowplan extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdForeignKey = " ";		/* 主键*/
	private String fdSerialNumber = " ";		/* 序号*/
	private String fdWorkface = " ";		/* 采面*/
	private String fdRoadwayId = " ";		/* 巷道ID*/
	private String fdDepartmentId = " ";		/* 施工部门*/
	private Double fdSurplusLength = new Double(0);		/* 剩余量*/
	private String fdBeginDate = " ";		/* 开始时间*/
	private String fdEndDate = " ";		/* 结束时间*/
	private Double fdPlan = new Double(0);		/* 计划总量*/
	private Double fdMonthPlan = new Double(0);		/* 月计划量*/
	private Long fdDuration = new Long(0);	/* 工期*/
	private Double fdCompleted = new Double(0);		/* 已完成量*/
	private String fdRemarks = " ";		/* 备注*/
	private Double fdSection = new Double(0);		/* 净断面*/
	private String fdMineRock = " ";		/* 煤岩别ID*/
	private String fdRoadwayType = " ";		/* 巷道类型ID*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineRock");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("煤岩别ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkface");
	eiColumn.setFieldLength(60);	
	eiColumn.setDescName("采面名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRoadwayType");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("巷道类型ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSection");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("净断面");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignKey");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSerialNumber");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("序号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRoadwayId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("巷道ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("开始时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDate");
	eiColumn.setFieldLength(14);	
	eiColumn.setDescName("结束时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlan");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划总量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthPlan");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("月计划量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDuration");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName("工期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCompleted");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("已完成量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBBoringFollowplan() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdWorkface - 工作面名称
	 * @return the fdWorkface
	 */
	public String getFdWorkface() {
		return this.fdWorkface;
	}
	
	/**
	 * set the fdWorkface - 工作面名称
	 */
	public void setFdWorkface(String fdWorkface) {
		this.fdWorkface = fdWorkface;
	}
	
	/**
	 * get the fdForeignKey - 主键
	 * @return the fdForeignKey
	 */
	public String getFdForeignKey() {
		return this.fdForeignKey;
	}
	
	/**
	 * set the fdForeignKey - 主键
	 */
	public void setFdForeignKey(String fdForeignKey) {
		this.fdForeignKey = fdForeignKey;
	}
	
	/**
	 * get the fdSerialNumber - 序号
	 * @return the fdSerialNumber
	 */
	public String getFdSerialNumber() {
		return this.fdSerialNumber;
	}
	
	/**
	 * set the fdSerialNumber - 序号
	 */
	public void setFdSerialNumber(String fdSerialNumber) {
		this.fdSerialNumber = fdSerialNumber;
	}
	
	/**
	 * get the fdRoadwayId - 巷道ID
	 * @return the fdRoadwayId
	 */
	public String getFdRoadwayId() {
		return this.fdRoadwayId;
	}
	
	/**
	 * set the fdRoadwayId - 巷道ID
	 */
	public void setFdRoadwayId(String fdRoadwayId) {
		this.fdRoadwayId = fdRoadwayId;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdSurplusLength - 剩余量
	 * @return the fdSurplusLength
	 */
	public Double getFdSurplusLength() {
		return this.fdSurplusLength;
	}
	
	/**
	 * set the fdSurplusLength - 剩余量
	 */
	public void setFdSurplusLength(Double fdSurplusLength) {
		this.fdSurplusLength = fdSurplusLength;
	}
	
	/**
	 * get the fdBeginDate - 开始时间
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 开始时间
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	
	/**
	 * get the fdEndDate - 结束时间
	 * @return the fdEndDate
	 */
	public String getFdEndDate() {
		return this.fdEndDate;
	}
	
	/**
	 * set the fdEndDate - 结束时间
	 */
	public void setFdEndDate(String fdEndDate) {
		this.fdEndDate = fdEndDate;
	}
	
	/**
	 * get the fdPlan - 计划总量
	 * @return the fdPlan
	 */
	public Double getFdPlan() {
		return this.fdPlan;
	}
	
	/**
	 * set the fdPlan - 计划总量
	 */
	public void setFdPlan(Double fdPlan) {
		this.fdPlan = fdPlan;
	}
	
	/**
	 * get the fdMonthPlan - 月计划量
	 * @return the fdMonthPlan
	 */
	public Double getFdMonthPlan() {
		return this.fdMonthPlan;
	}
	
	/**
	 * set the fdMonthPlan - 月计划量
	 */
	public void setFdMonthPlan(Double fdMonthPlan) {
		this.fdMonthPlan = fdMonthPlan;
	}
	
	/**
	 * get the fdDuration - 工期
	 * @return the fdDuration
	 */
	public Long getFdDuration() {
		return this.fdDuration;
	}
	
	/**
	 * set the fdDuration - 工期
	 */
	public void setFdDuration(Long fdDuration) {
		this.fdDuration = fdDuration;
	}
	
	/**
	 * get the fdCompleted - 已完成量
	 * @return the fdCompleted
	 */
	public Double getFdCompleted() {
		return this.fdCompleted;
	}
	
	/**
	 * set the fdCompleted - 已完成量
	 */
	public void setFdCompleted(Double fdCompleted) {
		this.fdCompleted = fdCompleted;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the fdMineRockId - 煤岩别ID
	 * @return the fdMineRockId
	 */
	public String getFdMineRock() {
		return this.fdMineRock;
	}
	
	/**
	 * set the fdMineRockId - 煤岩别ID
	 */
	public void setFdMineRock(String fdMineRock) {
		this.fdMineRock = fdMineRock;
	}
	
	/**
	 * get the fdRoadwayTypeId - 巷道类型ID
	 * @return the fdRoadwayTypeId
	 */
	public String getFdRoadwayType() {
		return this.fdRoadwayType;
	}
	
	/**
	 * set the fdRoadwayTypeId - 巷道类型ID
	 */
	public void setFdRoadwayType(String fdRoadwayType) {
		this.fdRoadwayType = fdRoadwayType;
	}
	
	/**
	 * get the fdSection - 净断面
	 * @return the fdSection
	 */
	public Double getFdSection() {
		return this.fdSection;
	}
	
	/**
	 * set the fdSection - 净断面
	 */
	public void setFdSection(Double fdSection) {
		this.fdSection = fdSection;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdWorkface(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkface")), fdWorkface));
		setFdForeignKey(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignKey")), fdForeignKey));
		setFdSerialNumber(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSerialNumber")), fdSerialNumber));
		setFdRoadwayId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRoadwayId")), fdRoadwayId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdSurplusLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusLength")), fdSurplusLength));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdEndDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDate")), fdEndDate));
		setFdPlan(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlan")), fdPlan));
		setFdMonthPlan(NumberUtils.toDouble(StringUtils.toString(map.get("fdMonthPlan")), fdMonthPlan));
		setFdDuration(NumberUtils.toLong(StringUtils.toString(map.get("fdDuration")), fdDuration));
		setFdCompleted(NumberUtils.toDouble(StringUtils.toString(map.get("fdCompleted")), fdCompleted));
		setFdMineRock(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMineRock")), fdMineRock));
		setFdRoadwayType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRoadwayType")), fdRoadwayType));
		setFdSection(NumberUtils.toDouble(StringUtils.toString(map.get("fdSection")), fdSection));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdWorkface",StringUtils.toString(fdWorkface, eiMetadata.getMeta("fdWorkface")));	
			map.put("fdForeignKey",StringUtils.toString(fdForeignKey, eiMetadata.getMeta("fdForeignKey")));	
			map.put("fdSerialNumber",StringUtils.toString(fdSerialNumber, eiMetadata.getMeta("fdSerialNumber")));	
			map.put("fdRoadwayId",StringUtils.toString(fdRoadwayId, eiMetadata.getMeta("fdRoadwayId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdSurplusLength",StringUtils.toString(fdSurplusLength, eiMetadata.getMeta("fdSurplusLength")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdEndDate",StringUtils.toString(fdEndDate, eiMetadata.getMeta("fdEndDate")));	
			map.put("fdPlan",StringUtils.toString(fdPlan, eiMetadata.getMeta("fdPlan")));	
			map.put("fdMonthPlan",StringUtils.toString(fdMonthPlan, eiMetadata.getMeta("fdMonthPlan")));	
			map.put("fdDuration",StringUtils.toString(fdDuration, eiMetadata.getMeta("fdDuration")));	
			map.put("fdCompleted",StringUtils.toString(fdCompleted, eiMetadata.getMeta("fdCompleted")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			map.put("fdMineRock",StringUtils.toString(fdMineRock, eiMetadata.getMeta("fdMineRock")));	
			map.put("fdRoadwayType",StringUtils.toString(fdRoadwayType, eiMetadata.getMeta("fdRoadwayType")));	
			map.put("fdSection",StringUtils.toString(fdSection, eiMetadata.getMeta("fdSection")));	
			
		return map;
	
	}
}